package git.soulbgm.service;

import git.soulbgm.common.base.BaseService;
import git.soulbgm.pojo.Goods;


/**
 * 商品表
 *
 * @author SoulBGM
 * @version V1.0
 * @date 2020-11-06 17:27:16
 */
public interface GoodsService extends BaseService<Goods> {

    /**
     * 减少库存
     *
     * @param goodsId 商品id
     * @param amount  数量
     * @return boolean
     * @throws Exception 异常
     */
    boolean reduceInventory(Long goodsId, Integer amount) throws Exception;

}
